package com.hfut.jpoa.service;

import java.util.List;

import com.hfut.jpoa.common.dto.ResultDto;
import com.hfut.jpoa.dto.WorkSystemDTO;
import com.hfut.jpoa.model.WorkSystem;
import com.hfut.jpoa.service.exception.SysparaException;
import com.hfut.jpoa.service.exception.WorkSystemException;

/**
 * 工作制度模块
 * 
 * @author Administrator
 * 
 */
public interface WorkSystemService
{
	/**
	 * 
	 * 根据条件查询页面列表
	 * 
	 * @param condition
	 * @return
	 * @throws SysparaException
	 */
	public ResultDto<WorkSystem> queryInfoForPage(WorkSystemDTO condition)
	        throws WorkSystemException;

	/**
	 * 
	 * 编辑记录
	 * 
	 * @param record
	 * @throws WorkSystemException
	 */
	public void update(WorkSystem record) throws WorkSystemException;

	/**
	 * 查询详情
	 * 
	 * @param syspara
	 * @return
	 * @throws SysparaException
	 */
	public WorkSystem findInfo(WorkSystem condition) throws WorkSystemException;

	/**
	 * 验证编码是否已经被使用
	 * 
	 * @param condition
	 * @return 存在返回true，失败返回false
	 * @throws WorkSystemException
	 */
	public boolean codeValidator(WorkSystem condition)
	        throws WorkSystemException;

	/**
	 * 查询列表
	 * 
	 * @param config
	 * @return
	 * @throws SysparaException
	 */
	public List<WorkSystem> queryList(WorkSystem condition)
	        throws WorkSystemException;

	/**
	 * 保存报修信息
	 * 
	 * @param WorkSystem
	 * @throws SysparaException
	 */
	public void saveWorkSystem(WorkSystem WorkSystem)
	        throws WorkSystemException;

	/**
	 * 删除
	 * 
	 * @param workSystem
	 */
	public int delete(WorkSystem workSystem) throws WorkSystemException;

}
